<center><img src="veiculo.png"/></center><br /><br />
<fieldset>
    <form action="cadastro_veic_banc.php" method="POST" name="form">
        <table>
            <tr>
                <td>
                    <b>Placa</b>
                </td>
            </tr>
            <td>
                <input type="text" name="placa" id="placa" maxlength="8" onkeyup="separador(this)" style="text-transform:uppercase;"/>
            </td>
            <tr>
                <td>
                    <b>Modelo</b>
                </td>
            </tr>
            <td>
                <input type="text" name="modelo" id="modelo" style="text-transform:uppercase;"/>
            </td>
        </table><br />
        <input type="submit" value="Cadastrar"/>
        <input type="button" value="Limpar" onclick="javascript:window.history.go(0)"/>
        <input type="hidden" name="id" id="id" value="0">
    </form>
    <fieldset style="float: right; width: 20%; margin-top: -12.2%; margin-right: 0%">
        <legend><h3>Veiculos Cadastrados</h3></legend>
        <div name="div_cadastros" id="div_cadastros" style="overflow: scroll; overflow-x: hidden">
        <?php
        $query = "SELECT placa, id FROM veiculo WHERE bloqueado = 0";
        $result = mysql_query($query);
        echo "<table>";
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            echo '<tr>
                    <td>' . $row["placa"] . '</td>
                    <td><img src="./imagens/usuario_edit.png" onclick="document.getElementById(\'id\').value =' . $row["id"] . ';Execedicao(\'veiculo\',\'' . $row["id"] . '\')"/></td>
                    <td><img src="./imagens/usuario_del.png" onclick="delecao(\'veiculo\',\'' . $row["id"] . '\')"/></td>
            </tr>';
        }
        echo "</table>";
        ?>
    </div>
    </fieldset>
</fieldset>
